<?php
require_once('App-Top.php');
require_once('Authorizer.php');
require_once('GenFunctions.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>System Management</title>
        <link href="StyleControl.css" rel="stylesheet" type="text/css" />
    </head>
    <body>

        <div id="sidebar">
            <h3>Reports</h3>
            <ul>
                <li><a href="#">Gate List</a></li>
                <li><a href="#">Members List</a></li>
            </ul>


            <?php
                require_once('MenuAdmin.php');
            ?>
        </div>

        <div id="mainbody">
            <p>System Management.</p>
            <p>TODO: Only make accessible to Super.</p>

            <?php
            //// User Information based upon the login status
            if (isset($_SESSION['SESS_USER_TYPE'])) {
                if (isUserType_Super($_SESSION['SESS_USER_TYPE'])) {

                     echo '<p>You should be seeing this. Great!</p>';
                }
                else
                {
                    echo '<p class="error">You are not authorized in this area. Please select one of the Menu Links.</p>';
                }
            }
            ?>

        </div>

    </body>
</html>
<?php
require_once('App-End.php');
?>

<!-- Designed: Jose Trujillo - 2011 -->